#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2020/6/16 0016 22:22
# @Author  : wzy
# @Site    : 
# @File    : operate_excel.py
# @Software: PyCharm
import os
base_path = ''
class PathInfo():
    def get_project_baseUrl(self):
        '''
        :return:获取当前项目基本路径
        '''
        base_path = os.path.dirname(os.getcwd())
        print()
        return base_path
    def get_excel_fileUrl(self):
        '''
        :return:获取excel文件的路径
        '''
        excel_path = self.get_project_baseUrl() + "/Case/testcase.xlsx"
        return excel_path
        pass
    def get_config_fileUrl(self):
        excel_path = self.get_project_baseUrl() + "/Config/server.ini"
        return excel_path

    def get_json_fileUrl(self):
        json_path = self.get_project_baseUrl() + "/Config/header.json"
        return json_path

pathinfo = PathInfo()
if __name__ == '__main__':
    print(pathinfo.get_json_fileUrl())
    # print(pathinfo.get_config_fileUrl())
    # print(pathinfo.get_excel_fileUrl())
    pass